negotiator.issue
Class IssueReal
java.lang.Object
negotiator.issue.Objective
negotiator.issue.Issue
negotiator.issue.IssueReal
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
public class IssueReal
- extends Issue
- Author:
- Koen Hindriks
- See Also:
- Serialized Form
|
Constructor Summary |
IssueReal(java.lang.String name,
int issueNumber,
double min,
double max)
|
IssueReal(java.lang.String name,
int issueNumber,
double min,
double max,
Objective objParent)
|
| Methods inherited from class negotiator.issue.Objective |
children, equalContents, equals, getAllowsChildren, getChildAt, getChildCount, getChildren, getChildWithID, getDescription, getHighestObjectiveNr, getIndex, getName, getNumber, getObjective, getParent, getPath, getPreorderEnumeration, getPreorderIssueEnumeration, getPreorderObjectiveEnumeration, getSiblings, getUserObject, hashCode, insert, isIssue, isLeaf, isObjective, isParent, remove, remove, removeFromParent, setDescription, setName, setNumber, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IssueReal
public IssueReal(java.lang.String name,
int issueNumber,
double min,
double max)
IssueReal
public IssueReal(java.lang.String name,
int issueNumber,
double min,
double max,
Objective objParent)
checkInRange
public boolean checkInRange(Value val)
- Description copied from class:
Issue
- Method to check if the given value is in the range specified
by the issue.
- Specified by:
checkInRange in class Issue
- Parameters:
val - to be checked.
- Returns:
- true if in range.
getLowerBound
public final double getLowerBound()
getUpperBound
public final double getUpperBound()
setUpperBound
public final boolean setUpperBound(double up)
setLowerBound
public final boolean setLowerBound(double lo)
getNumberOfDiscretizationSteps
public int getNumberOfDiscretizationSteps()
setNumberOfDiscretizationSteps
public void setNumberOfDiscretizationSteps(int numberOfDiscretizationSteps)
toXML
public SimpleElement toXML()
- Returns a SimpleElement representation of this issue.
- Overrides:
toXML in class Issue
- Returns:
- The SimpleElement with this issues attributes
getType
public ISSUETYPE getType()
- Description copied from class:
Objective
- This method is added for convenience. It is simply an alternative implementation of the getType method
from the Issue class. It will always return that the type is Objective. This method must be overridden
in Issue to return the type of the Issue.
- Specified by:
getType in class Issue
- Returns:
- ISSUETYPE.OBJECTIVE
convertToString
public java.lang.String convertToString()
- Specified by:
convertToString in class Issue
- Returns:
- corresponding string representation